package com.castle.fortress.admin.ai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.castle.fortress.admin.ai.model.enity.CastleConfigAiPrompt;
import com.castle.fortress.admin.ai.model.enums.AIAssiantEnum;
import com.castle.fortress.admin.ai.service.CastleConfigAiPromptService;
import com.castle.fortress.admin.ai.mapper.CastleConfigAiPromptMapper;
import org.springframework.stereotype.Service;

/**
* @author fkrbl
* @description 针对表【castle_config_ai_prompt】的数据库操作Service实现
* @createDate 2025-08-26 19:35:45
*/
@Service
public class CastleConfigAiPromptServiceImpl extends ServiceImpl<CastleConfigAiPromptMapper, CastleConfigAiPrompt>
    implements CastleConfigAiPromptService{

    @Override
    public CastleConfigAiPrompt getByEnum(AIAssiantEnum aiAssiantEnum) {
        Integer code = aiAssiantEnum.getCode();
        return getById(code);
    }
}




